
<ul id="main-nav" class="nav nav-pills nav-stacked">  
    <li>
        <a href="{{$APP_BASE_URL}}" class="nav-top-item no-submenu {{if $menu[0]=='controlpanel'}}current{{/if}}">
            Control Panel
        </a>       
    </li>
    {{if 2 == $LOGGED_GROUP_ID}}
    <li> 
            <a href="{{$APP_BASE_URL}}user/admin/edit-user/id/{{$loggedUser.user_id}}" class="nav-top-item no-submenu {{if $menu[0]=='usergroup'}}current{{/if}}">{{l}}My Account{{/l}}</a>
    </li>
    {{else}}
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='usergroup'}}current{{/if}}">
        Users & Groups
        </a>
        <ul>
            {{p name='new_user' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/new-user" class="{{if $menu[1]=='newuser'}}current{{/if}}">{{l}}New User{{/l}}</a></li>{{/p}}
            {{p name='see_user' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/manage-user" class="{{if $menu[1]=='manageuser'}}current{{/if}}">{{l}}Manage Users{{/l}} </a></li>{{/p}}
            {{p name='see_group' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/manage-group" class="{{if $menu[1]=='managegroup'}}current{{/if}}">{{l}} Manage Groups{{/l}}</a></li>{{/p}}
            
            {{p name='see_permission' module='permission'}}<li><a href="{{$APP_BASE_URL}}permission/admin/manager" class="{{if $menu[1]=='managepermission'}}current{{/if}}">{{l}}Manage Permissions{{/l}}</a></li>{{/p}}
     
        </ul>
    </li>
    {{/if}}
   
	
    {{p name='see_category' module='content' expandId='?'}}
	<li><a href="#" class="nav-top-item {{if $menu[0]=='subject'}}current{{/if}}"> 
		Subject</a>
		<ul>
			{{p name='new_category' module='content' expandId='?'}}
			<li><a href="{{$APP_BASE_URL}}content/admin/new-category"
				class="{{if $menu[1]=='newcontentcategory'}}current{{/if}}">New Subject</a></li>
			{{/p}}
			 {{p name='see_category' module='content' expandId='?'}}
			<li><a href="{{$APP_BASE_URL}}content/admin/manage-category"
				class="{{if $menu[1]=='managecontentcategory'}}current{{/if}}"> Manage Subject</a></li>
			{{/p}}
		</ul>
	</li>
	{{/p}}
     
     {{p name='see_content' module='content' expandId='?'}}
	<li><a href="#" class="nav-top-item {{if $menu[0]=='content'}}current{{/if}}"> 
		{{l}}Content{{/l}} </a>
		<ul>
			{{p name='new_content' module='content' expandId='?'}}
			<li><a href="{{$APP_BASE_URL}}content/admin/new-content"
				class="{{if $menu[1]=='newcontent'}}current{{/if}}">{{l}}New Content{{/l}}</a></li>
			{{/p}}
			 {{p name='see_content' module='content' expandId='?'}}
			<li><a href="{{$APP_BASE_URL}}content/admin/manage-content"
				class="{{if $menu[1]=='managecontent'}}current{{/if}}"> {{l}}Manage Content{{/l}}</a></li>
			{{/p}}
		</ul>
	</li>
	{{/p}}
    
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='question'}}current{{/if}}">
       Question
        </a>
        <ul>
            {{p name='new_question' module='question'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}question/admin/new-question" class="{{if $menu[1]=='newquestion'}}current{{/if}}">Create multichoice</a></li>{{/p}}
            {{p name='see_question' module='question'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}question/admin/manage-question" class="{{if $menu[1]=='managequestion'}}current{{/if}}">Manage multichoice</a></li>{{/p}}
            
        </ul>
    </li>
    
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='exercise'}}current{{/if}}">
       Exercise
        </a>
        <ul>
        <li><a href="{{$APP_BASE_URL}}exercise/admin/new-exercise-para" class="{{if $menu[1]=='newexercise'}}current{{/if}}">New Exercise</a></li>
        <li><a href="{{$APP_BASE_URL}}exercise/admin/manage-exercise-para" class="{{if $menu[1]=='manageexercise'}}current{{/if}}">Manage Exercise</a></li>
          <li><a href="{{$APP_BASE_URL}}exercise/admin/new-folder" class="{{if $menu[1]=='newdemo'}}current{{/if}}">Add Demo</a></li>
           <li><a href="{{$APP_BASE_URL}}exercise/admin/manage-folder" class="{{if $menu[1]=='managedemo'}}current{{/if}}">Manage Demo</a></li>
           
        </ul>
    </li>
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='chapter'}}current{{/if}}">
       Chapter
        </a>
        <ul>
        
			<li><a href="{{$APP_BASE_URL}}book/admin/new-chapter" class="{{if $menu[1]=='newchapter'}}current{{/if}}">Create Chapter</a></li>
            <li><a href="{{$APP_BASE_URL}}book/admin/manage-chapter" class="{{if $menu[1]=='managechapter'}}current{{/if}}">Manage Chapter</a></li> 
                         
       
        </ul>
    </li>
    
     <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='book'}}current{{/if}}">
       iBook
        </a>
        <ul>
            <li><a href="{{$APP_BASE_URL}}book/admin/new-book" class="{{if $menu[1]=='newbook'}}current{{/if}}">Create iBook</a></li>
            <li><a href="{{$APP_BASE_URL}}book/admin/manage-book" class="{{if $menu[1]=='managebook'}}current{{/if}}">Manage iBook</a></li>
			          
       
        </ul>
    </li>
    
    
<!--    <li> -->
<!--        <a href="#" class="nav-top-item {{if $menu[0]=='others'}}current{{/if}}">-->
<!--        Others-->
<!--        </a>-->
<!--        <ul>-->
<!--            {{p name='see_translation' module='language'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}language/translation/manage" class="{{if $menu[1]=='manage-translation'}}current{{/if}}">Manage Translations</a></li>{{/p}}-->
<!--        </ul>-->
<!--    </li>-->
    
</ul> 